﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using GemBox.ExcelLite;
using Newtonsoft.Json;
using System.Reflection;

namespace iMall.AtoZ.Helper
{
    public class OrderInfoEnity
    {
        public OrderInfoEnity ( )
        {
            this.AddOn = DateTime.Now;
            this.Addr = string.Empty;
            this.BatchID = string.Empty;
            this.City = string.Empty;
            this.Color = string.Empty;
            this.County = string.Empty;
            this.ExpressCo = string.Empty;
            this.ExpressNo = string.Empty;
            this.Memo = string.Empty;
            this.Merchant = string.Empty;
            this.Mobile = string.Empty;
            this.OrderID = string.Empty;
            this.OrderOn = DateTime.Now;
            this.Price = 0;
            this.Product = string.Empty;
            this.Province = string.Empty;
            this.Quantity = 0;
            this.Size = string.Empty;
            this.Specify = string.Empty;
            this.State = 0;
            this.UserName = string.Empty;
            this.Zipcode = string.Empty;
        }

        public void SetValue ( string field, string value )
        {
            if ( field == null || field.Length < 1 )
            { return; }
           
            AtoZUtility.SetObjPropertyValue(this, field, value);
        }

        public int ID { get; set; }
        public string OrderID { get; set; }
        public string UserName { get; set; }
        public string Mobile { get; set; }
        public string Province { get; set; }
        public string City { get; set; }
        public string County { get; set; }
        public string Addr { get; set; }
        public string Zipcode { get; set; }
        public string Specify { get; set; }
        public string Size { get; set; }
        public string Color { get; set; }
        public string Memo { get; set; }
        public int Quantity { get; set; }
        public DateTime OrderOn { get; set; }
        public int Price { get; set; }
        public string ExpressNo { get; set; }
        public string ExpressCo { get; set; }
        public string Product { get; set; }
        public string Merchant { get; set; }
        public int State { get; set; }
        public string BatchID { get; set; }
        public DateTime AddOn { get; set; }
        public string FileName { get; set; }
    }
}